package com.example.literaturesystem.service.team.impl;

import com.example.literaturesystem.dao.team.ITeamDao;
import com.example.literaturesystem.domain.base.BaseModel;
import com.example.literaturesystem.domain.team.Team;
import com.example.literaturesystem.service.team.ITeamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("teamService")
public class TeamServiceImpl implements ITeamService {

    @Autowired
    private ITeamDao teamDao;

    @Override
    public List<Team> query(BaseModel baseModel) {
        return this.teamDao.query(baseModel);
    }

    @Override
    public int update(BaseModel baseModel) {
        return this.teamDao.update(baseModel);
    }

    @Override
    public int insert(BaseModel baseModel) {
        return this.teamDao.insert(baseModel);
    }
}
